<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%><%@taglib uri="/struts-tags" prefix="s" %><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><s:text name="site.title"/></title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="css/style.css" type="text/css" media="all" />
<script src="js/jquery-1.4.1.min.js" type="text/javascript"></script>
<script src="js/jquery.jcarousel.pack.js" type="text/javascript"></script>
<script src="js/jquery-func.js" type="text/javascript"></script>
<style type="text/css">
	#div_news{
		width: 928px;
		margin: 0 auto;
	}
	#div_news ul{
		margin-top : 10px; 
	}
	#div_news ul li{
		list-style: none;
		list-style-type: none;
		height: 25px;
		line-height: 25px;
		background: url('images/news_List_Type.gif') no-repeat left;
		text-indent:10px;
		text-align: left;
	}
	#div_news ul li a{
		font-size: 16px;
	}
	.news_a{
		padding-left: 50px;
	}
	#top_intro{
		background: url("css/images/main.jpg");
		width: 100%;
		height: 50px;
		margin: 0 auto;
	}
	#top_intro div{
		width: 970px;
		height: 50px;
		margin: 0 auto;
	}
	.newsSummary{
		float: right;
		margin-right: 10px;
	}
	.newsSummary2{
		margin-right: 10px;
		clear: both;
	}
	.hr{
		 border-top: 1px dashed green;border-bottom: none;clear: both;
	}
</style>
</head>
<%
    String path = request.getRequestURI();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path;
%>
<body>
<%@include file="header.jsp"  %>
<div id="top_intro">
<div>
	<h3 class="tab">
		<span class="ico ico1"><s:text name="latestNews" />
		</span>
		</h3>
	</div>
</div>

<!-- Slider -->
<div>
  <div style="width: 970px;margin: 0 auto;">
      <div id="div_news">
        <!-- 
        <c:forEach items="${list}" var="news" varStatus="n">
        	<c:if test="${n.index % 2 eq 0}"><li></c:if>
        	<a href="news-detail.action?id=${news.id }">${news.title }</a><a href="news-detail.action?id=${news.id }" class="news_a">${news.title }</a>
          	<c:if test="${n.index % 2 eq 1}"></li></c:if>
        </c:forEach>
         -->
         <c:forEach items="${list}" var="news" varStatus="n">
         	<ul>
	        	<li style="text-indent: 20px;">
	        		<h1 style="margin-right: 10px;"><a href="news-detail.action?id=${news.id }&type=${news.type }" target="_blank">${news.title }</a></h1>
	        	</li>
	        	<div class="newsSummary2">
					<div align="right">新闻来源/编辑：<font style="font-weight: bold;">${news.editor }</font></div>
	        	</div>
	        	<li class="newsSummary">
					<div align="right"><a style="FONT-SIZE: 12px" title="${news.title }" href="news-detail.action?id=${news.id }&type=${news.type }" target="_blank">[阅读全文]</a></div>
	        	</li>
	        	<div class="hr"></div>
        	</ul>
        </c:forEach>
      </div>
    </div>
</div>
<!-- End Slider -->

<!-- Footer -->
<%@include file="footer.jsp" %>
<!-- End Footer -->
</body>
</html>
